package cn.fanyc.action.blockchain.fbc.contract;

import org.hyperledger.fabric.contract.Context;
import org.hyperledger.fabric.shim.ChaincodeStub;

/**
 * 商业票据智能合约上下文
 *
 * @author Fanyc
 * @date 2020-10-18 15:56
 */
public class CommercialPaperContext extends Context {

    /**
     * 票据列表管理器
     */
    public PaperList paperList;

    /**
     * Creates new client identity and sets it as a property of the stub.
     *
     * @param stub Instance of the {@link ChaincodeStub} to use
     */
    public CommercialPaperContext(ChaincodeStub stub) {
        super(stub);
        this.paperList = new PaperList(this);
    }
}
